<template>
  <div class="hello">
    <h1>{{ msg }}</h1>
    {{'~assets/logo.png'}}
    <div>
      <h3>图片：</h3>
      <img src="~assets/logo.png" />
    </div>
    <hr />
    <h3>背景图片：</h3>
    <div class="bg"></div>
  </div>
</template>

<script>
export default {
  name: 'HelloWorld',
  props: {
    msg: {
      type: String,
      default: '默认值'
    }
  }
}
</script>

<style lang="scss">
.hello {
  .bg {
    width: 300px;
    height: 300px;
    background: url(~assets/logo.png);
  }
}
</style>
